import request from '@/utils/request'

// 查询用例前置操作步骤列表
export function listBefore_step(query) {
  return request({
    url: '/ai_smart/before_step/list',
    method: 'get',
    params: query
  })
}

// 查询用例前置操作步骤详细
export function getBefore_step(id) {
  return request({
    url: '/ai_smart/before_step/' + id,
    method: 'get'
  })
}

// 新增用例前置操作步骤
export function addBefore_step(data) {
  return request({
    url: '/ai_smart/before_step',
    method: 'post',
    data: data
  })
}

// 修改用例前置操作步骤
export function updateBefore_step(data) {
  return request({
    url: '/ai_smart/before_step',
    method: 'put',
    data: data
  })
}

// 删除用例前置操作步骤
export function delBefore_step(id) {
  return request({
    url: '/ai_smart/before_step/' + id,
    method: 'delete'
  })
}
